// app.js
App({
  onLaunch() {
   //判断当前小程序系统环境是否支持相应的api
   console.log(wx.canIUse('openBluetoothAdapter'));
 
   console.log( wx.getSystemInfoSync())
   var res = wx.getSystemInfoSync()
   console.log("当前设备的宽：" +res.screenWidth);
   console.log("当前设备的高："+ res.screenHeight);
   wx.getSystemInfo({
     success(res){
       console.log(res);

     }
   })
  }
})
